package com.bx.implatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: yufeng
 * @date: 2024-02-20
 * @description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_call_record")
public class CallRecord extends Model<CallRecord> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 拔打方用户id
     */
    @TableField("send_id")
    private Long sendId;

    /**
     * 接听方用户id
     */
    @TableField("receive_id")
    private Long receiveId;

    /**
     * 拨打类型 呼入/呼出
     */
    @TableField("call_type")
    private String callType;

    /**
     * 接打状态
     */
    @TableField("call_status")
    private String callStatus;

    /**
     * 接打时长
     */
    @TableField("call_mins")
    private String callMins;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
